<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 cgi_center_counter_preview.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
$page_title = "Counter Setup";
include $root_path.'common.php';
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'scripts/cgi_center_counter_preview.tpl')
);

$host = <<<EOFpacman
<cpanel print="$httphost">
EOFpacman;

$styles = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "1", "2", "3", "4", "5", "6", "7");


foreach ($styles as $row) {
	$template->assign_block_vars('stylerow', array(
		'NAME' => $row,
		'PATH' => "http://".$host."/cgi-sys/Count.cgi?df=sample.dat&lit=123456789&dd=".$row,
		)
	);
};




$template->assign_vars(array(
	'S_ACTION' => "cgi_center_randomhtml_setup_done.php",
	'S_HIDDEN_FIELDS' => $s_hidden_fields,
	'S_FILE_CONTENT' => $s_file_content,
	
	'ADDRESS' => $HTTP_GET_VARS['address'],
	'FORWARD' => $HTTP_GET_VARS['forward'],
));

//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';


?>